package cbh.tool;

import java.util.regex.Pattern;

/**
 * Created by hx-pc on 16-4-26.
 */
public class StringsVerifyWithRegex {

    public static boolean verifyAllNumber(String verifyString) {
        return Pattern.compile("[0-9]+").matcher(verifyString).matches();
    }

    public static boolean verifyAllChar(String verifyString) {
        return Pattern.compile("[A-z]+").matcher(verifyString).matches();
    }

}
